home *** CD-ROM | disk | FTP | other *** search
- Path: news.polymtl.ca!cormier
- From: cormier@step.polymtl.ca (Mario Cormier)
- Newsgroups: comp.lang.c++
- Subject: Re: Multithreading in C++?
- Date: 26 Jan 1996 21:26:54 GMT
- Organization: STEP
- Message-ID: <4ebguu$ck0@service.polymtl.ca>
- References: <4d97fc$ps6@galaxy.ucr.edu> <4co6mf$98d@serv.hinet.net> <4cta8m$i74@isoit109.bbn.hp.com> <4drps6$fa2@vixen.cso.uiuc.edu>
- NNTP-Posting-Host: step.polymtl.ca
- X-Newsreader: TIN [version 1.2 PL2]
-
- Scott J. McCaughrin (sjmccaug@prairienet.org) wrote:
-
- : In a previous article, thp@cs.ucr.edu (Tom Payne) says:
-
- : >Manfred_Lange (Manfred_Lange@bbn.hp.com) wrote:
- : >: jcwang@hntp2.hinet.net (John C. Wang) wrote:
- : >: >
- : >: >Does anyone know if there is a standard C interface for multithread
- : >: >programming? Under MS Visual C++ there are thread functions for the NT, but I
- : >: >am pretty sure that's not a standard function call. What do they use in UNIX?
- : >: >Does the POSIX standards specify this?
- : >: >
- : >: >Please reply to my email if possible.
- : >: >
- : >: >jcwang@csie.ntu.edu.tw
- : >: >
- : >:
- : >: As far as I know, there are no functions in the standard libraries that deal
- : >: with threads. This is typically left to the underlying operating system.
- : >
- : What about spawn() for child processes, and exec()?
-
- These are, as you mentionned, for processes. Threads are quite different
- from processes. To make a long story short, they are concurrent tasks
- _within the same process_. It is also true to say that they are still very
- OS specific.
-
- : sjm
-
-
- --
- ============================================================================
- == OS/2 Development == Mario Cormier ==
- == #### #### ## #### == Computer Engineering ==
- == ## ## ## ## ## ## == Ecole Polytechnique de Montreal ==
- == ## ## #### ## ## == ==
- == ## ## ## ## ## == cormier@info.polymtl.ca ==
- == #### #### ## ###### == cormier@step.polymtl.ca ==
- ============================================================================
-